import api from "./index";

// 地址数据请求接口
export default {
  // 地址列表
  addressList: (params) => api.get("/applet/address/list", params),
  // 地址详情
  getAddressById: (params) => api.get("/applet/address/getAddressById/" + params),
  // 新增地址
  saveAddress: (params) => api.post("/applet/address/saveAddress", params),
  // 修改地址
  updateAddress: (params) => api.post("/applet/address/updateAddress", params),
  // 删除地址
  deleteAddressIds: (params) => api.post("/applet/address/deleteAddressIds", params),
  // 获取默认地址
  getDefaultAddress: () => api.get("/applet/address/defaultAddr"),
};
